package com.carb.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;

/**
 * 通用逻辑删除 (0: 未删除, 1: 已删除)
 */
@Getter
public enum CommonDeleted {
    NOT_DELETED(0, "未删除"),
    DELETED(1, "已删除");

    @EnumValue
    private final int code;
    @JsonValue
    private final String desc;

    CommonDeleted(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }
}
